var niuniu = require('./niuniu.js');


var testGetResult2 = function () {
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH AH"];//无牛 牛1
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 2H"];//无牛 牛2
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 3H"];//无牛 牛3
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 4H"];//无牛 牛4
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 5H"];//无牛 牛5
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 6H"];//无牛 牛6
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 7H"];//无牛 牛7
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 8H"];//无牛 牛8
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH 9H"];//无牛 牛9
    // var hands = ["AS 2S 3S TS JS", "TH TH TH JH QH"];//无牛 牛牛
    // var hands = ["TH TH TH JH 7H", "TH TH TH JH QH"];//牛7 牛牛
    // var hands = ["TH TH TH JH 7H", "KH KH KH KH QH"];//牛7 炸弹
    // var hands = ["QH QH QH QH KH", "KH KH KH KH QH"];//炸弹 炸弹
    // var hands = ["KH KH KH QH TH", "KS KH KH QH TH"];//炸弹 炸弹
    // var hands = ["TH TH TH JH 7H", "KH KH KH QH TH"];//牛7 4花
    // var hands = ["TH TH TH JH 7H", "1H 2H 3H 1H 2H"];//牛7 5小
    // var hands = ["1H 2H 3H 1H 2H", "1S 2S 3S 1S 2S"];//5小 5小
    var hands = ["1H 1H 4H 1H 1H", "1S 2S 3S 1S 2S"];//5小 5小

    var config = {
        "diFen": 100,
        "bet": [2,2]
    };

    var result = niuniu.getResult(hands, config);

    console.dir(result);
};
// testGetResult2();

var testGetResult5 = function () {
    var hands = ["AS 2S 3S TS JS", "TH TH TH JH AH", "TH TH TH JH 2H", "TH TH TH JH 3H", "TH TH TH JH 4H"];//无牛 牛1 牛2 牛3 牛4

    var config = {
        // "diFen": 100,
        "bet": [2,2,1,2,4]
        // "dealerIndex": 2
    };

    var result = niuniu.getResult(hands, config);

    console.dir(result);
};
testGetResult5();